<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>create an SDO</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.sca.html">SCA 函数</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sca.getservice.html">SCA::getService</a></div>
 <div class="up"><a href="ref.sca.html">SCA 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="sca.createdataobject" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SCA::createDataObject</h1>
  <p class="verinfo">(PECL SDO &gt;= 0.5.0)</p><p class="refpurpose"><span class="refname">SCA::createDataObject</span> &mdash; <span class="dc-title"> create an SDO </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-sca.createdataobject-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><a href="ref.sdo.html" class="type SDO_DataObject">SDO_DataObject</a></span> 
   <span class="methodname"><strong>SCA::createDataObject</strong></span>
    ( <span class="methodparam">
    <span class="type">string</span>
     <code class="parameter">$type_namespace_uri</code>
   </span>
   , <span class="methodparam">
    <span class="type">string</span>
     <code class="parameter">$type_name</code>
   </span>
   )</div>

  
  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">此函数是<em class="emphasis">实验性</em>的。此函数的表象，包括名称及其相关文档都可能在未来的
PHP 发布版本中未通知就被修改。使用本函数风险自担 。</p></div>
  
  <p class="para"> This method is used inside an SCA component that needs to create
   an SDO to return. The parameters are the desired SDO&#039;s namespace URI
   and type name. The namespace and type must be defined in one of the
   schema files which are specified on the @types annotation within the
   component. </p>
  
 </div>

 <div class="refsect1 parameters" id="refsect1-sca.createdataobject-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>

      <em><code class="parameter">type_namespace_uri</code></em>
     </dt>

     <dd>

      <p class="para"> The namespace of the type. </p>
     </dd>

    
    
     <dt>

      <em><code class="parameter">type_name</code></em>
     </dt>

     <dd>

      <p class="para"> The name of the type. </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-sca.createdataobject-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para"> Returns the newly created SDO_DataObject. </p>
 </div>

 
 <div class="refsect1 errors" id="refsect1-sca.createdataobject-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   <dl>

    
     <dt>

      <em><code class="parameter">SDO_TypeNotFoundException</code></em>
     </dt>

     <dd>

      <p class="para"> Thrown if the namespaceURI and typeName do not correspond
       to a type in any of the schema files specified in the @types
       annotations. </p>
     </dd>

    
   </dl>

  </p>
 </div>

 
 
 
 
 
 
 
</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.sca.html">SCA 函数</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sca.getservice.html">SCA::getService</a></div>
 <div class="up"><a href="ref.sca.html">SCA 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
